<?php defined("IN_SYSTEM") or die("Access Denied");/* 防止模板被盗 */?>
<!DOCTYPE html>
<html>
<head>
    <title>{:config('base.site_title')}</title>
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <link rel="stylesheet" href="__ADMIN_JS__/layui/css/layui.css">
    <style type="text/css">
        body{background-color:#f5f5f5;}
    </style>
</head>
<body>
<div class="layui-container">  
  <div class="layui-row">
    <div class="layui-col-md3 layui-col-md-offset9">
		<span>欢迎登入图书馆：</span>
		<a href="{:url('login/logout')}">退出</a>
    </div>
	<form class="layui-form layui-form-pane" action="{:url('index/index')}" id="editForm" method="post">
		<div class="layui-form-item">
		    <label class="layui-form-label">图书馆区域</label>
		    <div class="layui-input-inline">
	            <select name="areaid" type="select" class="layui-input">
	            	<option value="0">请选择区域</option>
	                {$level_option}
	            </select>
		    </div>

	        <label class="layui-form-label">预约时间</label>
	        <div class="layui-input-inline">
	            <input type="text" class="layui-input" name="stime" id="stime" readonly lay-verify="required" placeholder="请选择开始时间">
	        </div>

	        <label class="layui-form-label">预约时长</label>
	        <div class="layui-input-inline">
	            <select name="time" type="select" class="layui-input">
	            	<option value="0">请选择时长</option>
	            </select>
	        </div>

	        <div class="layui-input-inline">
	            <button type="submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit">查询</button>
	        </div>
	    </div>
	</form>
  </div>
	
</div>

{include file="public/footer" /}
<script type="text/javascript">
layui.use(['laydate'], function(){
  var laydate = layui.laydate;
  laydate.render({
    elem: '#stime',
    type: 'datetime',
    format:'yyyy-MM-dd HH:mm'
  });
});
</script>
</body>
</html>